package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

public interface IUserService {

    /**
     * 注册用户
     * @param user
     */
    public void register(User user);

    /**
     * 登陆功能
     * @param
     * @return
     */
    User login(String email,String password);


    PageInfo query(QueryObject qo);

    void update(User user);

    User getUserById(Long id);
}
